package com.winskysoft.entity;

import java.util.List;

import org.apache.commons.lang.StringUtils;

public class Table {
	private String name;

	private String table;

	private String lowerName;

	private List<Column> column;

	public String getName() {
		return name;
	}

	public void setName(String name) {

		String[] s = name.split("_");

		String tempName = "";
		for (int i = 1; i < s.length; i++) {
			tempName += s[i];
		}

		tempName = tempName.substring(0, 1).toUpperCase()
				+ tempName.substring(1).toLowerCase();

		this.name = tempName;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getLowerName() {
		return name.toLowerCase();
	}

	public void setLowerName(String lowerName) {
		this.lowerName = lowerName;
	}

	public List<Column> getColumn() {
		return column;
	}

	public void setColumn(List<Column> column) {
		this.column = column;
	}

}
